#include "NoHands.h"

NoHands g_pNoHands;

void NoHands::Init()
{
	Active = true;
	g_pHands = g_pInterfaces.g_pMaterialSystem->FindMaterial(/*models\\weapons\\v_models\\hands\\v_hands*/XorStr(37, 0xB1, 0xDC5FCB4B, 0xC15FF75D, 0xCC49D749, 0xCB57FF54, 0xFE4DF07A, 0xF870E846, 0xF179F972, 0xE648E54D, 0xF971E16A, 0xFE000000).c_str(), /*Model textures*/XorStr(14, 0x5F, 0x12B139B9, 0x37FA2DBD, 0x2FA220A6, 0x36A10000).c_str(), true, NULL);
}

void NoHands::SetActive(bool bActive)
{
	Active = bActive;
}

void NoHands::Enable()
{
	Active = true;
}

void NoHands::Disable()
{
	Active = false;
}

void NoHands::Compute()
{
	if(Active)
	{
		g_pHands->SetMaterialVarFlag(MATERIAL_VAR_NO_DRAW, true);
	}
	else
	{
		g_pHands->SetMaterialVarFlag(MATERIAL_VAR_NO_DRAW, false);
	}
}